import java.util.Comparator;

import com.aliasi.util.Pair;


public class MaxComparator implements Comparator<Pair<Double,String>>{
	
	
		public int compare(Pair<Double, String> o1, Pair<Double, String> o2) {
			
			if(o1.a() < o2.a())
	            return 1;
	        else if(o1.a() > o2.a())
	            return -1;
	        else
	            return 0;  
		}
	   
	
}
